package com.ruoyi.blUser.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 yonghu
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
public class Yonghu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String yonghuzhanghao;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String yonghuxingming;

    /** 密码 */
    @Excel(name = "密码")
    private String mima;

    /** 用户性别（0男 1女 2未知） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String xingbie;

    /** 头像 */
    @Excel(name = "头像")
    private String touxiang;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String dianhuahaoma;

    /** 紧急联系人 */
    @Excel(name = "紧急联系人")
    private String jinjilianxiren;

    /** 血型 */
    @Excel(name = "血型")
    private String xuexing;

    /** 禁忌 */
    @Excel(name = "禁忌")
    private String jinji;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setYonghuzhanghao(String yonghuzhanghao) 
    {
        this.yonghuzhanghao = yonghuzhanghao;
    }

    public String getYonghuzhanghao() 
    {
        return yonghuzhanghao;
    }
    public void setYonghuxingming(String yonghuxingming) 
    {
        this.yonghuxingming = yonghuxingming;
    }

    public String getYonghuxingming() 
    {
        return yonghuxingming;
    }
    public void setMima(String mima) 
    {
        this.mima = mima;
    }

    public String getMima() 
    {
        return mima;
    }
    public void setXingbie(String xingbie) 
    {
        this.xingbie = xingbie;
    }

    public String getXingbie() 
    {
        return xingbie;
    }
    public void setTouxiang(String touxiang) 
    {
        this.touxiang = touxiang;
    }

    public String getTouxiang() 
    {
        return touxiang;
    }
    public void setDianhuahaoma(String dianhuahaoma) 
    {
        this.dianhuahaoma = dianhuahaoma;
    }

    public String getDianhuahaoma() 
    {
        return dianhuahaoma;
    }
    public void setJinjilianxiren(String jinjilianxiren) 
    {
        this.jinjilianxiren = jinjilianxiren;
    }

    public String getJinjilianxiren() 
    {
        return jinjilianxiren;
    }
    public void setXuexing(String xuexing) 
    {
        this.xuexing = xuexing;
    }

    public String getXuexing() 
    {
        return xuexing;
    }
    public void setJinji(String jinji) 
    {
        this.jinji = jinji;
    }

    public String getJinji() 
    {
        return jinji;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("addtime", getAddtime())
            .append("yonghuzhanghao", getYonghuzhanghao())
            .append("yonghuxingming", getYonghuxingming())
            .append("mima", getMima())
            .append("xingbie", getXingbie())
            .append("touxiang", getTouxiang())
            .append("dianhuahaoma", getDianhuahaoma())
            .append("jinjilianxiren", getJinjilianxiren())
            .append("xuexing", getXuexing())
            .append("jinji", getJinji())
            .toString();
    }
}
